package com.own.business.login.phone.core.service.impl;

import com.own.business.login.phone.core.service.LoginPhoneService;
import com.own.component.common.exception.BusinessSimpleException;
import com.own.exception.ExceptionEnum;
import lombok.extern.slf4j.Slf4j;

/**
 * LoginPhoneServiceImpl
 *
 * @author chenxueli
 * @date 2023-06-21 15:54:35
 */
@Slf4j
public class LoginPhoneServiceImpl implements LoginPhoneService {

    /**
     * 登录表单
     *
     * @param phone    手机号
     * @param password 密码
     * @param type     账号类型 1=普通用户 2=管理员
     * @return 登录的用户id信息
     */
    @Override
    public Long login(String phone, String password, int type) {
        throw new BusinessSimpleException(ExceptionEnum.Login.NOT_DEFINED);
    }

    /**
     * 退出登录
     *
     * @return 是否退出成功
     */
    @Override
    public boolean loginOut() {
        throw new BusinessSimpleException(ExceptionEnum.Login.NOT_DEFINED);
    }

}
